package com.cs.study.homework._0205;

import java.util.Arrays;

public class Array {
    public static void main(String[] args) {
        double[] arr = new double[]{2.0, 4.0, 6.0, 9.0};
        System.out.println("原来的数组：" + Arrays.toString(arr));
        //从最后一位往前开始算
        for (int i = arr.length - 1; i >= 0; i--) {
            arr[i] = arr[i] / arr[0];
        }
            System.out.println("新数组" + Arrays.toString(arr));
    }
}
